package com.zhoukun.cloud.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhoukun.cloud.CommentRest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhoukun 86547462@qq.com
 * @version 1.0
 * @date 2020/11/2 22:08
 */
@FeignClient(value = "seara-storage-server")
public interface StorageService {
    //减库存
    @GetMapping("/storage/up/{id}/{num}")
    public CommentRest up(@PathVariable("id") Long id, @PathVariable("num") Integer num);
}
